<template>
    <div class="login-page">
        <!-- 页面头部 -->
        <div class="login-header">
            <div class="header-content">
                <div class="logo-icon"></div>
                <span class="header-title">{{ appTitle }}</span>
            </div>
        </div>

        <!-- 背景装饰元素 -->
        <div class="background-decorations">
            <!-- 网格背景 -->
            <div class="grid-background"></div>

            <!-- 浮动圆点 -->
            <div class="floating-dot dot-1"></div>
            <div class="floating-dot dot-2"></div>
            <div class="floating-dot dot-3"></div>
            <div class="floating-dot dot-4"></div>

            <!-- 背景波浪 -->
            <div class="background-waves">
                <svg class="waves-svg" viewBox="0 0 1200 120" preserveAspectRatio="none">
                    <path
                        d="M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z"
                        fill="rgba(59, 130, 246, 0.2)"
                        fill-opacity="1"
                    ></path>
                </svg>
            </div>
        </div>

        <!-- 主内容区域 -->
        <div class="main-content">
            <!-- 登录卡片容器 -->
            <div class="login-card">
                <!-- 左侧视觉区域 -->
                <div class="visual-section">
                    <div class="visual-content">
                        <div class="visual-title">
                            <div class="title-icon"></div>
                            <span>{{ appTitle }}</span>
                        </div>
                        <div class="data-illustration">
                            <div class="main-cube">
                                <div class="cube-face front"></div>
                                <div class="cube-face back"></div>
                                <div class="cube-face left"></div>
                                <div class="cube-face right"></div>
                                <div class="cube-face top"></div>
                                <div class="cube-face bottom"></div>
                                <div class="data-particles">
                                    <div class="particle p1"></div>
                                    <div class="particle p2"></div>
                                    <div class="particle p3"></div>
                                </div>
                            </div>
                            <div class="server-shapes">
                                <div class="server-rack shape-1"></div>
                                <div class="server-rack shape-2"></div>
                                <div class="server-rack shape-3"></div>
                            </div>
                            <div class="network-lines">
                                <div class="line l1"></div>
                                <div class="line l2"></div>
                                <div class="line l3"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- 右侧登录表单区域 -->
                <div class="form-section">
                    <div class="form-header">
                        <h2 class="form-title">{{ appTitle }}</h2>
                    </div>

                    <!-- 登录表单 -->
                    <a-form ref="loginFormRef" :model="loginForm" :rules="loginRules" class="login-form">
                        <a-form-item name="username">
                            <!-- 用户名输入框 -->
                            <div class="form-item">
                                <label class="form-label">用户名</label>
                                <a-input
                                    v-model:value="loginForm.username"
                                    placeholder="请输入用户名"
                                    size="large"
                                    allowClear
                                    class="form-input"
                                >
                                    <template #prefix>
                                        <UserOutlined />
                                    </template>
                                </a-input>
                            </div>
                        </a-form-item>
                        <!-- 密码输入框 -->
                        <a-form-item name="password">
                            <div class="form-item">
                                <label class="form-label">密码</label>
                                <a-input-password
                                    v-model:value="loginForm.password"
                                    placeholder="请输入密码"
                                    size="large"
                                    allowClear
                                    class="form-input"
                                >
                                    <template #prefix>
                                        <LockOutlined />
                                    </template>
                                </a-input-password>
                            </div>
                        </a-form-item>

                        <!-- 验证码输入框 -->
                        <a-form-item name="code">
                            <div class="form-item captcha-item">
                                <label class="form-label">验证码</label>
                                <div class="captcha-container">
                                    <a-input
                                        v-model:value="loginForm.code"
                                        placeholder="验证码"
                                        size="large"
                                        allowClear
                                        class="captcha-input"
                                    >
                                        <template #prefix>
                                            <SecurityScanOutlined />
                                        </template>
                                    </a-input>
                                    <div class="captcha-image" @click="refreshCaptcha">
                                        <img v-if="captchaImage" :src="captchaImage" alt="验证码" />
                                        <ea-svg-icon v-else icon-name="photo_fail" class="text-lg"></ea-svg-icon>
                                        <a-spin v-if="imageloading" size="small" />
                                    </div>
                                </div>
                            </div>
                        </a-form-item>
                        <!-- 登录按钮 -->
                        <div class="login-button-container">
                            <a-button type="primary" :loading="loginLoading" class="login-button" @click="handleLogin">
                                {{ loginLoading ? '登录中...' : '登录' }}
                            </a-button>
                        </div>
                    </a-form>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import { ref, reactive, onMounted } from 'vue'
import { message } from 'ant-design-vue'
import { UserOutlined, LockOutlined, SecurityScanOutlined } from '@ant-design/icons-vue'
import type { FormInstance, Rule } from 'ant-design-vue/es/form'
import { getCaptchaApi, loginApi } from '@/api/core/login'
import { EaSvgIcon } from '@/components'
import { useRoute, useRouter } from 'vue-router'
import { useAccessStore } from '@/stores/modules/access'

// 表单引用
const loginFormRef = ref<FormInstance>()
const appTitle = import.meta.env.VITE_APP_TITLE

// 路由/Store
const router = useRouter()
const route = useRoute()
const { setToken, setUserInfo } = useAccessStore()

// 表单数据
const loginForm = reactive({
    username: '',
    password: '',
    code: '',
    uuid: '',
})

// 表单验证规则
const loginRules: Record<string, Rule[]> = {
    username: [
        { required: true, message: '请输入用户名', trigger: 'blur' },
        { min: 3, max: 20, message: '用户名长度在 3 到 20 个字符', trigger: 'blur' },
    ],
    password: [
        { required: true, message: '请输入密码', trigger: 'blur' },
        { min: 6, max: 20, message: '密码长度在 6 到 20 个字符', trigger: 'blur' },
    ],
    code: [
        { required: true, message: '请输入验证码', trigger: 'blur' },
        { len: 4, message: '验证码长度为 4 个字符', trigger: 'blur' },
    ],
}

// 状态
const loginLoading = ref(false)
const captchaImage = ref<string | null>(null)

const imageloading = ref<boolean>(false)
// 生成验证码图片
const getCaptchaImage = () => {
    imageloading.value = true
    getCaptchaApi()
        .then((res) => {
            captchaImage.value = 'data:image/png;base64,' + res.data.captchaImage
            loginForm.uuid = res.data.captchaId
        })
        .catch((err: unknown) => {
            captchaImage.value = null
            console.error(err)
        })

    imageloading.value = false
}

// 刷新验证码
const refreshCaptcha = () => {
    getCaptchaImage()
}

// 登录处理
const handleLogin = async () => {
    if (!loginFormRef.value) return

    try {
        await loginFormRef.value.validate()
    } catch {
        return
    }

    // 验证码校验
    if (!loginForm.code.trim()) {
        message.error('验证码不能为空')
        return
    }

    loginLoading.value = true

    try {
        const response = await loginApi({
            username: loginForm.username,
            password: loginForm.password,
            code: loginForm.code,
            uuid: loginForm.uuid,
        })
        const { token, userInfo } = response.data
        setToken(token)
        setUserInfo(userInfo)
        router.replace(getRedirect())
    } catch (error: unknown) {
        let msg = '登录失败'
        const e = error as {
            response?: { data?: { message?: string } }
            data?: { message?: string }
            message?: string
        }
        msg = e?.response?.data?.message || e?.data?.message || e?.message || msg
        message.error(msg)
        refreshCaptcha()
        loginForm.code = ''
        loginForm.uuid = ''
    } finally {
        loginLoading.value = false
    }
}

const getRedirect = () => {
    const redirect = route.query.redirect as string
    return redirect ? decodeURIComponent(redirect) : '/'
}
// 初始化验证码
onMounted(() => {
    refreshCaptcha()
})
</script>

<style lang="scss" scoped>
.login-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background:
            radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }
}

// 页面头部
.login-header {
    position: absolute;
    top: 30px;
    left: 50px;
    z-index: 10;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    &::after {
        content: 'E∀';
        color: white;
        font-weight: bold;
        font-size: 16px;
    }
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #3b82f6;
}

// 背景装饰元素
.background-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

// 网格背景
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(
            to bottom,
            rgba(59, 130, 246, 0.015) 0%,
            rgba(59, 130, 246, 0.04) 50%,
            rgba(59, 130, 246, 0.015) 100%
        ),
        linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.08) 2px, transparent 2px);
    background-size:
        100% 100%,
        20px 20px,
        20px 20px,
        20px 20px;
    background-position:
        0 0,
        0 0,
        0 0,
        0 0;
    animation: gridFloat 12s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes gridFloat {
    0%,
    100% {
        background-position:
            0 0,
            0 0,
            0 0,
            0 0;
        opacity: 0.5;
    }
    50% {
        background-position:
            0 0,
            -10px -10px,
            -10px -10px,
            -10px -10px;
        opacity: 0.8;
    }
}

// 浮动圆点
.floating-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    animation: floatUp 6s ease-in-out infinite;

    &.dot-1 {
        width: 8px;
        height: 8px;
        top: 20%;
        left: 10%;
        animation-duration: 4s;
    }

    &.dot-2 {
        width: 12px;
        height: 12px;
        top: 30%;
        right: 15%;
        animation-duration: 5s;
        animation-delay: 1s;
    }

    &.dot-3 {
        width: 6px;
        height: 6px;
        top: 70%;
        left: 20%;
        animation-duration: 3s;
        animation-delay: 0.5s;
    }

    &.dot-4 {
        width: 10px;
        height: 10px;
        top: 80%;
        right: 10%;
        animation-duration: 4.5s;
        animation-delay: 2s;
    }
}

@keyframes floatUp {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

// 背景波浪装饰
.background-waves {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 120px;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.waves-svg {
    width: 100vw !important;
    height: 100% !important;
    min-width: 100vw !important;
    position: absolute;
    bottom: 0;
    left: 0;
}

// 主内容区域
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
}

// 登录卡片
.login-card {
    width: 100%;
    max-width: 900px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: flex;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        border-radius: 20px;
        pointer-events: none;
    }
}

// 左侧视觉区域
.visual-section {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.visual-content {
    text-align: center;
    color: white;
}

.visual-title {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
}

.title-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    &::after {
        content: 'E∀';
        color: #3b82f6;
        font-weight: bold;
        font-size: 14px;
    }
}

// 数据可视化插图
.data-illustration {
    position: relative;
    width: 300px;
    height: 200px;
}

.main-cube {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotateCube 10s linear infinite;
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    box-shadow:
        0 0 20px rgba(147, 197, 253, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);

    &.front {
        background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
        transform: translateZ(40px);
    }

    &.back {
        background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
        transform: rotateY(180deg) translateZ(40px);
    }

    &.left {
        background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
        transform: rotateY(-90deg) translateZ(40px);
    }

    &.right {
        background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
        transform: rotateY(90deg) translateZ(40px);
    }

    &.top {
        background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%);
        transform: rotateX(90deg) translateZ(40px);
    }

    &.bottom {
        background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
        transform: rotateX(-90deg) translateZ(40px);
    }
}

@keyframes rotateCube {
    0% {
        transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg);
    }
}

.server-shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.server-rack {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;

    &.shape-1 {
        width: 30px;
        height: 60px;
        top: -80px;
        left: -120px;
        animation: pulse 2s ease-in-out infinite;
    }

    &.shape-2 {
        width: 40px;
        height: 80px;
        top: 40px;
        left: -140px;
        animation: pulse 2s ease-in-out infinite 0.5s;
    }

    &.shape-3 {
        width: 35px;
        height: 50px;
        top: -60px;
        left: 100px;
        animation: pulse 2s ease-in-out infinite 1s;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

// 数据粒子
.data-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);

    &.p1 {
        top: -40px;
        left: -40px;
        animation: particleFloat 3s ease-in-out infinite;
    }

    &.p2 {
        top: 40px;
        left: -40px;
        animation: particleFloat 3s ease-in-out infinite 0.5s;
    }

    &.p3 {
        top: 0px;
        left: 40px;
        animation: particleFloat 3s ease-in-out infinite 1s;
    }
}

@keyframes particleFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(20px, -20px) scale(1.5);
        opacity: 1;
    }
}

// 网络线条
.network-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(45deg, transparent 0%, rgba(96, 165, 250, 0.6) 50%, transparent 100%);
    height: 1px;
    animation: lineFlow 2s ease-in-out infinite;

    &.l1 {
        width: 80px;
        top: -30px;
        left: -30px;
        transform: rotate(45deg);
        animation-delay: 0s;
    }

    &.l2 {
        width: 60px;
        top: 30px;
        left: -30px;
        transform: rotate(-45deg);
        animation-delay: 0.7s;
    }

    &.l3 {
        width: 70px;
        top: 0px;
        left: 40px;
        transform: rotate(90deg);
        animation-delay: 1.4s;
    }
}

@keyframes lineFlow {
    0%,
    100% {
        opacity: 0.2;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

// 右侧表单区域
.form-section {
    flex: 0 0 40%;
    background: #f8fafc;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 40px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 20%, #60a5fa 60%, #3b82f6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 2px;
    position: relative;
    background-size: 200% 200%;
    animation: pulseGradient 2.5s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);

    &::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 0px;
        height: 3px;
        background: linear-gradient(135deg, #1e40af 0%, #60a5fa 50%, #1e40af 100%);
        border-radius: 2px;
        opacity: 0.8;
        animation: breathe 4s ease-in-out infinite;
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }
}

@keyframes pulseGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes breathe {
    0% {
        opacity: 0.7;
        width: 0px;
        border-radius: 50%;
        transform: translateX(-90px);
        transform-origin: left center;
    }
    25% {
        opacity: 1;
        width: 180px;
        border-radius: 2px;
        transform: translateX(-90px);
        transform-origin: left center;
    }
    50% {
        opacity: 1;
        width: 180px;
        border-radius: 2px;
        transform: translateX(-90px);
        transform-origin: left center;
    }
    75% {
        opacity: 1;
        width: 0px;
        border-radius: 2px;
        transform: translateX(90px);
        transform-origin: right center;
    }
    100% {
        opacity: 1;
        width: 0px;
        border-radius: 50%;
        transform: translateX(90px);
        transform-origin: right center;
    }
}

// 表单样式
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 6px;
    transition: color 0.3s ease;

    &:hover {
        color: #1e40af;
    }
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 90px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;

    &:hover {
        border-color: #3b82f6;
        background: #f0f4ff;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }
}

.login-button-container {
    margin-top: auto;
    padding-top: 20px;
}

// 登录按钮样式
:deep(.login-button) {
    width: 100% !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;

    &:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4) !important;
    }

    &:active {
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
    }

    &:disabled {
        background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%) !important;
        box-shadow: 0 2px 6px rgba(156, 163, 175, 0.3) !important;
    }

    .ant-btn-loading-icon {
        color: white !important;
    }
}

// 覆盖Ant Design默认样式
:deep(.form-input),
:deep(.captcha-input) {
    height: 40px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    font-size: 14px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;

    &:hover {
        border-color: #3b82f6 !important;
        box-shadow:
            0 2px 8px rgba(59, 130, 246, 0.15),
            0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    &:focus,
    &:focus-within {
        border-color: #3b82f6 !important;
        box-shadow:
            0 0 0 3px rgba(59, 130, 246, 0.1),
            0 4px 12px rgba(59, 130, 246, 0.15) !important;
        background: #fefefe !important;
    }

    .ant-input {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        font-size: 14px !important;
        height: 100% !important;
        padding: 0 14px !important;
        line-height: normal !important;

        &:focus {
            box-shadow: none !important;
            transform: none !important;
        }

        &::placeholder {
            color: #9ca3af !important;
            font-size: 13px !important;
        }
    }

    .ant-input-prefix {
        color: #6b7280 !important;
        margin-right: 10px !important;
        display: flex !important;
        align-items: center !important;

        svg {
            font-size: 14px !important;
        }
    }

    &:focus-within .ant-input-prefix {
        color: #3b82f6 !important;
    }

    .ant-input-suffix {
        color: #64748b !important;
        display: flex !important;
        align-items: center !important;

        &:hover {
            color: #3b82f6 !important;
        }
    }
}

// 响应式设计
@media (max-width: 768px) {
    .login-card {
        max-width: 400px;
        height: auto;
        flex-direction: column;
    }

    .visual-section {
        flex: none;
        height: 200px;
        padding: 20px;
    }

    .data-illustration {
        width: 200px;
        height: 120px;
    }

    .main-cube {
        width: 60px;
        height: 60px;
    }

    .form-section {
        flex: none;
        padding: 40px 30px;
    }

    .header-content {
        gap: 8px;
    }

    .header-title {
        font-size: 16px;
    }
}
</style>
